package com.mrh.mall.portal.repository;

import com.mrh.mall.portal.domain.MemberReadHistory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: 末日混
 * @Date: 2023年02月08日 21:09
 */

public interface MemberReadHistoryRepository extends MongoRepository<MemberReadHistory,String> {
    /**
     * 根据会员id按时间倒序获取浏览记录
     */
    List<MemberReadHistory> findMemberReadHistoriesByMemberIdOrderByCreateTimeDesc(Long memberId);
}
